﻿<Window x:Class="ShahyadS.BuildInspectorVSPackage.Inspector.BuildDefinitionSelectionWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="BuildDefinitionSelectionWindow" Height="300" Width="459">
    <Window.Resources>
        <Style x:Key="GroupHeaderStyle" TargetType="{x:Type GroupItem}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type GroupItem}" >
                        <Expander x:Name="exp" IsExpanded="true" Background="LightGray" Foreground="Black" >
                            <Expander.Header>
                                <TextBox Text="{Binding Name, Mode=OneWay}" BorderThickness="0" Background="LightGray"/>
                            </Expander.Header>
                            <ItemsPresenter/>
                        </Expander>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </Window.Resources>
    <Grid>
        <ToolBar Height="27" HorizontalAlignment="Stretch" Name="toolBar1" VerticalAlignment="Top" Width="Auto" >
            <Button Height="22" HorizontalAlignment="Left" Margin="0,0,0,0" Name="excludeButton" VerticalAlignment="Top" Width="22" >
                <Image Name="excludeImage" Height="Auto" HorizontalAlignment="Left" Margin="0" Stretch="None" VerticalAlignment="Top" Width="Auto" Source="/BuildInspectorVSPackage;component/Images/exclude.ico" />
            </Button>
            <Button Height="22" HorizontalAlignment="Left" Margin="0,0,0,0" Name="includeButton" VerticalAlignment="Top" Width="22" >
                <Image Name="includeImage" Height="Auto" HorizontalAlignment="Left" Margin="0" Stretch="None" VerticalAlignment="Top" Width="Auto" Source="/BuildInspectorVSPackage;component/Images/Include.ico" />
            </Button>
        </ToolBar>
        <DataGrid Height="Auto" HorizontalAlignment="Stretch" Margin="0,27,0,0" Name="dataGrid1" VerticalAlignment="Stretch" Width="Auto" RowHeight="22" Grid.RowSpan="2" Background="Gray" AutoGenerateColumns="False" UseLayoutRounding="True" IsReadOnly="False" IsManipulationEnabled="False" IsTextSearchEnabled="True">
            <DataGrid.GroupStyle>
                <GroupStyle ContainerStyle="{StaticResource GroupHeaderStyle}">
                    <GroupStyle.Panel>
                        <ItemsPanelTemplate>
                            <DataGridRowsPresenter Background="Gray"/>
                        </ItemsPanelTemplate>
                    </GroupStyle.Panel>
                </GroupStyle>
            </DataGrid.GroupStyle>
            <DataGrid.Columns>
                <DataGridCheckBoxColumn Header="Visible"
                                        Binding="{Binding Visible}"
                                        Width="Auto" >
                </DataGridCheckBoxColumn>
                <DataGridTextColumn Header="TeamProject"
                                    Binding="{Binding TeamProject}"
                                    Width="Auto" IsReadOnly="True">
                </DataGridTextColumn>
                <DataGridTextColumn Header="Name"
                                    Binding="{Binding Name}"
                                    Width="Auto" IsReadOnly="True">
                </DataGridTextColumn>
                <DataGridTextColumn Header="Line"
                                    Binding="{Binding Line}"
                                    Width="Auto" IsReadOnly="True">
                </DataGridTextColumn>
                <DataGridTextColumn Header="Extension"
                                    Binding="{Binding Extension}"
                                    Width="Auto" IsReadOnly="True">
                </DataGridTextColumn>
            </DataGrid.Columns>
        </DataGrid>
    </Grid>
</Window>
